package cn.ava.system.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import cn.ava.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author ava
 * @since 2022-07-11
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Menu extends BaseDomain{


    private String name;

    private String component;

    private String url;

    private String icon;

    private Integer index;

    private Long parentId;

    private String intro;

    private Boolean state;

    // 菜单父级
    private Menu parent;

    // 菜单数子级
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Menu> children = new ArrayList<>();




}
